home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 37
/
Aminet 37 (2000)(Schatztruhe)[!][Jun 2000].iso
/
Aminet
/
dev
/
misc
/
AWNP_2-39.lha
/
AWNP
/
AWNP-Docs
/
Demos
/
Test_The_Host.rx
< prev
next >
Wrap
Text File
|
1999-08-27
|
976b
|
60 lines
/*
Script to send some commands to the testhost
*/
options results
if ~show('L','rexxsupport.library') then
if ~addlib('rexxsupport.library',0,-30,0) then
exit(20)
if show('p','TESTHOST') then do
say
say "Sending command 'Date' ."
address TESTHOST date
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'Author' ."
address TESTHOST Author
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 1 2' ."
address TESTHOST add 1 2
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 1' ."
address TESTHOST add 1
if rc=0 then say result
else say rc
say
delay(100)
say "Sending command 'add 123 456' ."
address TESTHOST add 123 456
if rc=0 then say result
else say rc
say
/*delay(100)
say "Sending command 'quit' ."
address TESTHOST quit
if rc=0 then say result
else say rc
say
*/
delay(200)
end
else do
say "Arexx Host 'TESTHOST' not found"
say " You must run 'Host.rx' before running this script"
end